package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.YhbqxxVo;
import com.dhsc.local.dao.xtqxgl.IYhbqxxDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: YhbqxxDaoImpl
 * @Description: 用户标签信息
 * @date: 2023/11/16 14:32
 * @author: gx
 */
@Repository("yhbqxxdao")
public class YhbqxxDaoImpl implements IYhbqxxDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<YhbqxxVo> queryYhbqxx(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.selectList("YhbqxxMapper.queryYhbqxx",yhbqxxVo);
    }

    @Override
    public List<YhbqxxVo> querySxdxpz(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.selectList("YhbqxxMapper.querySxdxpz",yhbqxxVo);
    }

    @Override
    public int updateZcXg(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.update("YhbqxxMapper.updateZcXg",yhbqxxVo);
    }

    @Override
    public int updateZcWg(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.update("YhbqxxMapper.updateZcWg",yhbqxxVo);
    }

    @Override
    public int updateDsh(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.update("YhbqxxMapper.updateDsh",yhbqxxVo);
    }

    @Override
    public List<YhbqxxVo> querySxxz(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.selectList("YhbqxxMapper.querySxxz",yhbqxxVo);
    }

    @Override
    public List<String> queryIsHg(YhbqxxVo yhbqxx) {
        return localSqlSessionTemplate.selectList("YhbqxxMapper.queryIsHg",yhbqxx);
    }

    @Override
    public List<String> queryIsHc(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.selectList("YhbqxxMapper.queryIsHc",yhbqxxVo);
    }

    @Override
    public int insertSxdxpz(YhbqxxVo yhbqxxVo) {
        return localSqlSessionTemplate.insert("YhbqxxMapper.insertSxdxpz",yhbqxxVo);
    }
}
